#include<stdio.h>
#include<stdlib.h>


int main()
{
	pid_t id=fork();
	if(id<0)
	{
		return 0;
	}
	else if(id==0)
	{
		printf("this is child:%d,%d\n",getpid(),getppid());
		exit(1);
	}
	else
	{
		printf("this is father:%d,%d\n",getpid(),getppid());
		sleep(30);
	}
	
	return 0;
}
